define([
  './defaultValue-0a909f67',
  './FrustumGeometry-9f1ee4d8',
  './Transforms-a05e5e6e',
  './Matrix3-315394f6',
  './Check-666ab1a0',
  './Math-2dbd6b93',
  './Matrix2-13178034',
  './RuntimeError-06c93819',
  './combine-ca22a614',
  './ComponentDatatype-f7b11d02',
  './WebGLConstants-a8cc3e8c',
  './GeometryAttribute-334718f8',
  './GeometryAttributes-f06a2792',
  './Plane-900aa728',
  './VertexFormat-6b480673'
], function (
  defaultValue,
  FrustumGeometry,
  Transforms,
  Matrix3,
  Check,
  Math,
  Matrix2,
  RuntimeError,
  combine,
  ComponentDatatype,
  WebGLConstants,
  GeometryAttribute,
  GeometryAttributes,
  Plane,
  VertexFormat
) {
  'use strict'

  function createFrustumGeometry(frustumGeometry, offset) {
    if (defaultValue.defined(offset)) {
      frustumGeometry = FrustumGeometry.FrustumGeometry.unpack(frustumGeometry, offset)
    }
    return FrustumGeometry.FrustumGeometry.createGeometry(frustumGeometry)
  }

  return createFrustumGeometry
})
